package com.qq.service.impl;

import com.qq.mapper.HouseMapper;
import com.qq.model.House;
import com.qq.service.HouseService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class HouseServiceImpl implements HouseService {
    @Resource
    HouseMapper houseMapper;

    @Override
    public House findById(int id) {
        return houseMapper.findById(id);
    }

    @Override
    public int updateHouseByState(String state) {
        return houseMapper.updateHouseByState(state);
    }

    @Override
    public int updateHouseId(String cid, int id) {
        return houseMapper.updateHouseId(cid, id);
    }
}
